<template>
  <div>
    <DictSelectTag v-model="testData" dictCode="sex" style="width:200px;"/>
  </div>
</template>

<script>
  import {initDictOptions} from '@/components/dict/JDictSelectUtil'
  export default {
    name: 'Dict',
    data(){
      return {
        testData:'',
        sexDictOptions:[]
      }
    },
    created(){
      this.initDictConfig();
    },
    methods:{
      initDictConfig() {
        //初始化字典 - 性别
        initDictOptions('sex').then((res) => {
          if (res.success) {
            console.log("111222333",res.result)
            this.sexDictOptions = res.result;
          }
        });
      },
    }

  }
</script>

<style scoped>

</style>